﻿using System;
using MySql.Simple.Mapper.Attributes;

namespace MySql.Simple.Mapper.Domain
{
    [Table]
    internal class Post
    {
        [PrimaryKey]
        public int Id { get; set; }

        [Column]
        [ForeignKey(typeof(Blog))]
        public int BlogId { get; set; }

        [Column]
        public string Title { get; set; }

        [Column]
        public string Content { get; set; }

        [Column]
        public DateTime Created { get; set; }

        [Column]
        public bool Deleted { get; set; }
    }
}
